package com.coderush.admin.sys.exception;


import com.coderush.admin.core.exception.BusinessException;

/**
 * PackageName com.stellarforce.admin.sys.exception
 *
 * @Author Eason
 * @Version v1.0
 * @ClassName LoginException
 * @Date 2025/8/18
 * @Description TODO
 */
public class LoginException extends BusinessException {

    public LoginException(Integer code, String message) {
        super(code, message);
    }
    public LoginException(String message) {
        super(message);
    }

    public static LoginException notLoginInfo() {
        return new LoginException(5010, "用户信息不存在");
    }

    public static LoginException errorNameOrPassword() {
        return new LoginException(5011, "用户名或密码错误");
    }

    public static LoginException verifyCodeNotExist() {
        return new LoginException(5012, "验证码不存在或者过期");
    }

    public static LoginException verifyCodeError() {
        return new LoginException(5013, "验证码错误");
    }
}